function useSessionStorage(key,val){
    if(val){
        sessionStorage.setItem(key,JSON.stringify(val))
    }else{
        let res=JSON.parse(sessionStorage.getItem(key))
        return res
    }
}
export default useSessionStorage